package com.yingyi.user.domain;
import com.yingyi.basic.domain.BaseDomain;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
//import org.springframework.format.annotation.DateTimeFormat;
/**
 * (User)实体类
 * 对应的表（t_user）
 * @author Yingyi
 * @since 2022-07-26 17:16:27
 */
@Data 
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "(User)")
public class User extends BaseDomain{
    
    /**
    * 用户名
    */
    @ApiModelProperty(value = "用户名")
    private String username;
    /**
    * 电话
    */
    @ApiModelProperty(value = "电话")
    private String phone;
    /**
    * 邮件
    */
    @ApiModelProperty(value = "邮件")
    private String email;
    /**
    * 盐值
    */
    @ApiModelProperty(value = "盐值")
    private String salt;
    /**
    * 密码，md5加密加盐
    */
    @ApiModelProperty(value = "密码，md5加密加盐")
    private String password;
    /**
    * 状态 - 1启用，0禁用
    */
    @ApiModelProperty(value = "员工状态 - 1启用，0禁用")
    private Integer state = 1;
    
    @ApiModelProperty(value = "")
    private Integer age;
    /**
     * 创建时间
     */
    //@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createtime = new Date();
    
    @ApiModelProperty(value = "")
    private String headimg;
    
    @ApiModelProperty(value = "")
    private Long logininfoId;

}
